﻿namespace OpenAdmin.Application.Services;

/// <summary>
/// 租户服务接口
/// </summary>
public interface ITenantService
{
    /// <summary>
    /// 分页获取租户信息
    /// </summary>
    /// <param name="requestDto"></param>
    /// <returns></returns>
    Task<PagedList<TenantsByPageResponseDto>> GetTenantsByPage(TenantsByPageRequestDto requestDto);
    /// <summary>
    /// 添加租户
    /// </summary>
    /// <param name="requestDto"></param>
    /// <returns></returns>
    Task AddTenant(AddTenantRequestDto requestDto);

    /// <summary>
    /// 更新租户信息
    /// </summary>
    /// <param name="requestDto"></param>
    Task EditTenant(EditTenantRequestDto requestDto);

    /// <summary>
    /// 删除租户
    /// </summary>
    /// <param name="tenantId"></param>
    Task DeleteTenant(string tenantId);
}
